package com.mkait.thief.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import lombok.Data;

/**
 * 
 * @TableName plugin_paysafe
 */
@TableName(value ="plugin_paysafe")
@Data
public class PluginPaysafe implements Serializable {
    /**
     * 
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 
     */
    @TableField(value = "channel_id")
    private Integer channelId;

    /**
     * 
     */
    @TableField(value = "min_money")
    private BigDecimal minMoney;

    /**
     * 
     */
    @TableField(value = "max_money")
    private BigDecimal maxMoney;

    /**
     * 
     */
    @TableField(value = "open_random")
    private Integer openRandom;

    /**
     * 
     */
    @TableField(value = "random_money")
    private BigDecimal randomMoney;

    /**
     * 
     */
    @TableField(value = "status")
    private Integer status;

    /**
     * 
     */
    @TableField(value = "update_at")
    private Integer updateAt;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        PluginPaysafe other = (PluginPaysafe) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getChannelId() == null ? other.getChannelId() == null : this.getChannelId().equals(other.getChannelId()))
            && (this.getMinMoney() == null ? other.getMinMoney() == null : this.getMinMoney().equals(other.getMinMoney()))
            && (this.getMaxMoney() == null ? other.getMaxMoney() == null : this.getMaxMoney().equals(other.getMaxMoney()))
            && (this.getOpenRandom() == null ? other.getOpenRandom() == null : this.getOpenRandom().equals(other.getOpenRandom()))
            && (this.getRandomMoney() == null ? other.getRandomMoney() == null : this.getRandomMoney().equals(other.getRandomMoney()))
            && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()))
            && (this.getUpdateAt() == null ? other.getUpdateAt() == null : this.getUpdateAt().equals(other.getUpdateAt()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getChannelId() == null) ? 0 : getChannelId().hashCode());
        result = prime * result + ((getMinMoney() == null) ? 0 : getMinMoney().hashCode());
        result = prime * result + ((getMaxMoney() == null) ? 0 : getMaxMoney().hashCode());
        result = prime * result + ((getOpenRandom() == null) ? 0 : getOpenRandom().hashCode());
        result = prime * result + ((getRandomMoney() == null) ? 0 : getRandomMoney().hashCode());
        result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
        result = prime * result + ((getUpdateAt() == null) ? 0 : getUpdateAt().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", channelId=").append(channelId);
        sb.append(", minMoney=").append(minMoney);
        sb.append(", maxMoney=").append(maxMoney);
        sb.append(", openRandom=").append(openRandom);
        sb.append(", randomMoney=").append(randomMoney);
        sb.append(", status=").append(status);
        sb.append(", updateAt=").append(updateAt);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}